* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.settings {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.settings-btn {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background-color: #555;
    transform: rotate(90deg);
}

.settings-form {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.settings-form.hide {
    transform: translateY(-100%);
}

.settings-form h2 {
    margin-bottom: 15px;
    color: #333;
}

.settings-form select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.game-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 500px;
}

.game-container h1 {
    margin-bottom: 20px;
    color: #333;
}

#word {
    margin: 20px 0;
    font-size: 30px;
    color: #333;
}

input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 18px;
}

input:focus {
    outline: none;
    border-color: #333;
}

.score-time-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.score, .time {
    font-size: 18px;
    color: #555;
}

#end-game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    display: none;
}

#end-game-container h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

#end-game-container p {
    font-size: 24px;
    margin-bottom: 30px;
}

#end-game-container button {
    padding: 15px 30px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#end-game-container button:hover {
    background-color: #333;
    color: #fff;
}

.hide {
    display: none;
}